//
//  MQBaseViewController.swift
//  MQCRM
//
//  Created by 许博 on 2017/4/24.
//  Copyright © 2017年 mechat. All rights reserved.
//

import UIKit

class MQBaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        automaticallyAdjustsScrollViewInsets = false
        
        // 设置 navBar 整个背景的渲染颜色
        navigationController?.navigationBar.barTintColor = UIColor.clearBlue
        // 设置 navBar 的字体颜色
        navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white]
        // 设置系统按钮的文字渲染颜色
        navigationController?.navigationBar.tintColor = UIColor.white
        // 取消导航透明--视图偏移以（0，0）为基点
        navigationController?.navigationBar.isTranslucent = false
        self.edgesForExtendedLayout = .init(rawValue: 0)
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
